﻿export default {

    //指令列表
    /**
     *
     *  showTop 置顶
     *
     *  'exec', 'D:\\server\\ImageViewer\\ImageViewer.exe'  调用外部应用程序
     *  
     * linkpi.action("execbat", "c:\\pacs36\\doctor.exe " + this.patientItem.patientID+' '+ this.patientItem.visitId + ' ' +item.key); 调用脚本 后面跟参数
     * 
     * 'writeCase', data  写指定文本\
     *
     *  showWin  参数  ：{"show":true,"x":0,"y":0,"w":400,"h":300,"top":true}
     *
     * kill  {"exename":"ImageViewer.exe"}
     *
     *
     * 新增播放器： addPlayer    {"wid":"A1","x":0,"y":0,"w":800,"h":600,"show":true,"top":false,"ret"=true} ;
     * addPlayer 时加属性 "ret"=true ,就会收到每秒进度 信息
     *
     * 开始播放 playStart {"wid":"A1","url":"rtsp://129.0.0.1/0","loop":1}
     * 停止播放 playStop {"wid":"A1"}
     * 设置窗口 setPlayWin   {"wid":"A1","x":0,"y":0,"w":800,"h":600,"show":true,"top":false}
     *
     * 设置播放窗口声音 秒数setPlay {"wid":"a1","seek":1000,"volume":30}
     *  setPlay {"wid":"a1","seek":1000}  //播放进度
        setPlay {"wid":"a1","volume":30} //声音
        setPlay {"wid":"a1","pause":1} //是否暂停
     *
     *关闭 ：exit
     *
     * 最小化 minimize
     */


    action: function(action, json = "") {
        //alert('linkpi的action:'+action)
        //alert('linkpi的json:'+json)

        try {
            try {
                mix.action(action, json)

            } catch (e) {

            }
        } catch (e) {

        }

    },
    getInfo: function(action, json = "") {
        try {
            try {
                mix.getInfo(action, json, (res) => {
                    return res
                })

            } catch (e) {

            }
        } catch (e) {

        }

    },


}